<?php 
/**
 * 用户角色model类
 * @Author    紫梦
 * @DateTime  2017-11-18
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class AdminRoles extends Model
{
	public function admin()
	{
		return $this->hasOne('admin','admin_id','admin_id');
	}

	public function roles()
	{
		return $this->hasOne('roles','id','role_id');
	}
}